package com.aiwei.tdjk.controller;

import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.aiwei.tdjk.dto.request.DeliveryDetailPagerRequest;

import com.aiwei.tdjk.service.DeliveryDetailService;

@Controller
@RequestMapping(value = "/admin/deliveryDetail")
public class DeliveryDetailController extends BaseController {

	@Autowired
	private DeliveryDetailService deliveryDetailService;


	@RequestMapping(value = {"/list"}, method = RequestMethod.GET)
	public String list(DeliveryDetailPagerRequest request, Model model) {
		model.addAttribute("page", deliveryDetailService.find(request));
		model.addAttribute("deliveryDetail", request);
		return viewName("list");
	}
}
